package com.anycl.design.behavioral.observer;

public class Main {
    public static void main(String[] args) {
        // 发布者
        ConcreteSubject subject = new ConcreteSubject();
        // 订阅者
        Observer observer = new ConcreteObserver();
        subject.attach(observer);
        subject.notifyObservers();
    }
}
